package com.pn.service.impl;

import com.pn.entity.Brand;
import com.pn.mapper.BrandMapper;
import com.pn.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {
    /**
     * @return 品牌的查询结果
     */
    @Autowired
    private BrandMapper brandMapper;

    @Override

    public List<Brand> queryAllBrand() {
//        查询所有品牌
        return brandMapper.findAllBrand();
    }

}
